package com.insigma.business.qrcode.common.vo;


public enum SeqConstraintPositionEnum {
    PREFIX("PREFIX", "前缀"),
    MIDDLE("MIDDLE", "中间"),
    POSTFIX("POSTFIX", "后缀");

    private String message;
    private String code;

    private SeqConstraintPositionEnum(String code, String name) {
        this.message = name;
        this.code = code;
    }

    public static SeqConstraintPositionEnum getByCode(String code) {
        SeqConstraintPositionEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            SeqConstraintPositionEnum result = var1[var3];
            if (result.getCode().equals(code)) {
                return result;
            }
        }

        return null;
    }

    public String getMessage() {
        return this.message;
    }

    public String getCode() {
        return this.code;
    }
}
